import request from '@/utils/request'

// 查询订单列表
export function listBusinessorder(query) {
  return request({
    url: '/business/businessorder/list',
    method: 'get',
    params: query
  })
}

// 查询订单详细
export function getBusinessorder(id) {
  return request({
    url: '/business/businessorder/' + id,
    method: 'get'
  })
}

// 新增订单
export function addBusinessorder(data) {
  return request({
    url: '/business/businessorder',
    method: 'post',
    data: data
  })
}
// 新增订单
export function addDgzz(data) {
  return request({
    url: '/business/businessorder/addDgzz',
    method: 'post',
    data: data
  })
}


// 修改订单
export function updateBusinessorder(data) {
  return request({
    url: '/business/businessorder',
    method: 'put',
    data: data
  })
}

// 删除订单
export function delBusinessorder(id) {
  return request({
    url: '/business/businessorder/' + id,
    method: 'delete'
  })
}

export function nativePay() {
  return request({
    url: '/v3/nativePay',
    method: 'get'
  })
}
export function getSerialNumber() {
  return request({
    url: '/v3/getSerialNumber',
    method: 'get'
  })
}


